/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/
"use strict";

var $protobuf = require("protobufjs/minimal");

// Common aliases
var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util;

// Exported root namespace
var $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {});

$root.OrdOrder = (function() {

    /**
     * Properties of an OrdOrder.
     * @exports IOrdOrder
     * @interface IOrdOrder
     * @property {string|null} [uuid] OrdOrder uuid
     * @property {string|null} [upper] OrdOrder upper
     * @property {string|null} [validFlag] OrdOrder validFlag
     * @property {string|null} [creator] OrdOrder creator
     * @property {string|null} [createTime] OrdOrder createTime
     * @property {string|null} [creatorIp] OrdOrder creatorIp
     * @property {string|null} [lastModifier] OrdOrder lastModifier
     * @property {string|null} [lastModifyTime] OrdOrder lastModifyTime
     * @property {string|null} [lastModifierIp] OrdOrder lastModifierIp
     * @property {string|null} [ownerOrganize] OrdOrder ownerOrganize
     * @property {string|null} [ownerRole] OrdOrder ownerRole
     * @property {string|null} [serNum] OrdOrder serNum
     * @property {string|null} [serMemo] OrdOrder serMemo
     * @property {string|null} [serAudit] OrdOrder serAudit
     * @property {string|null} [serUsing] OrdOrder serUsing
     * @property {string|null} [serLabels] OrdOrder serLabels
     * @property {string|null} [addressStr] OrdOrder addressStr
     * @property {string|null} [addressDetail] OrdOrder addressDetail
     * @property {string|null} [receiverName] OrdOrder receiverName
     * @property {string|null} [receiverPhone] OrdOrder receiverPhone
     * @property {string|null} [serOrderNo] OrdOrder serOrderNo
     * @property {string|null} [serTotalFee] OrdOrder serTotalFee
     * @property {string|null} [serOrderType] OrdOrder serOrderType
     * @property {string|null} [serPaymentType] OrdOrder serPaymentType
     * @property {number|null} [serOrderStatus] OrdOrder serOrderStatus
     */

    /**
     * Constructs a new OrdOrder.
     * @exports OrdOrder
     * @classdesc Represents an OrdOrder.
     * @implements IOrdOrder
     * @constructor
     * @param {IOrdOrder=} [properties] Properties to set
     */
    function OrdOrder(properties) {
        if (properties)
            for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
                if (properties[keys[i]] != null)
                    this[keys[i]] = properties[keys[i]];
    }

    /**
     * OrdOrder uuid.
     * @member {string} uuid
     * @memberof OrdOrder
     * @instance
     */
    OrdOrder.prototype.uuid = "";

    /**
     * OrdOrder upper.
     * @member {string} upper
     * @memberof OrdOrder
     * @instance
     */
    OrdOrder.prototype.upper = "";

    /**
     * OrdOrder validFlag.
     * @member {string} validFlag
     * @memberof OrdOrder
     * @instance
     */
    OrdOrder.prototype.validFlag = "";

    /**
     * OrdOrder creator.
     * @member {string} creator
     * @memberof OrdOrder
     * @instance
     */
    OrdOrder.prototype.creator = "";

    /**
     * OrdOrder createTime.
     * @member {string} createTime
     * @memberof OrdOrder
     * @instance
     */
    OrdOrder.prototype.createTime = "";

    /**
     * OrdOrder creatorIp.
     * @member {string} creatorIp
     * @memberof OrdOrder
     * @instance
     */
    OrdOrder.prototype.creatorIp = "";

    /**
     * OrdOrder lastModifier.
     * @member {string} lastModifier
     * @memberof OrdOrder
     * @instance
     */
    OrdOrder.prototype.lastModifier = "";

    /**
     * OrdOrder lastModifyTime.
     * @member {string} lastModifyTime
     * @memberof OrdOrder
     * @instance
     */
    OrdOrder.prototype.lastModifyTime = "";

    /**
     * OrdOrder lastModifierIp.
     * @member {string} lastModifierIp
     * @memberof OrdOrder
     * @instance
     */
    OrdOrder.prototype.lastModifierIp = "";

    /**
     * OrdOrder ownerOrganize.
     * @member {string} ownerOrganize
     * @memberof OrdOrder
     * @instance
     */
    OrdOrder.prototype.ownerOrganize = "";

    /**
     * OrdOrder ownerRole.
     * @member {string} ownerRole
     * @memberof OrdOrder
     * @instance
     */
    OrdOrder.prototype.ownerRole = "";

    /**
     * OrdOrder serNum.
     * @member {string} serNum
     * @memberof OrdOrder
     * @instance
     */
    OrdOrder.prototype.serNum = "";

    /**
     * OrdOrder serMemo.
     * @member {string} serMemo
     * @memberof OrdOrder
     * @instance
     */
    OrdOrder.prototype.serMemo = "";

    /**
     * OrdOrder serAudit.
     * @member {string} serAudit
     * @memberof OrdOrder
     * @instance
     */
    OrdOrder.prototype.serAudit = "";

    /**
     * OrdOrder serUsing.
     * @member {string} serUsing
     * @memberof OrdOrder
     * @instance
     */
    OrdOrder.prototype.serUsing = "";

    /**
     * OrdOrder serLabels.
     * @member {string} serLabels
     * @memberof OrdOrder
     * @instance
     */
    OrdOrder.prototype.serLabels = "";

    /**
     * OrdOrder addressStr.
     * @member {string} addressStr
     * @memberof OrdOrder
     * @instance
     */
    OrdOrder.prototype.addressStr = "";

    /**
     * OrdOrder addressDetail.
     * @member {string} addressDetail
     * @memberof OrdOrder
     * @instance
     */
    OrdOrder.prototype.addressDetail = "";

    /**
     * OrdOrder receiverName.
     * @member {string} receiverName
     * @memberof OrdOrder
     * @instance
     */
    OrdOrder.prototype.receiverName = "";

    /**
     * OrdOrder receiverPhone.
     * @member {string} receiverPhone
     * @memberof OrdOrder
     * @instance
     */
    OrdOrder.prototype.receiverPhone = "";

    /**
     * OrdOrder serOrderNo.
     * @member {string} serOrderNo
     * @memberof OrdOrder
     * @instance
     */
    OrdOrder.prototype.serOrderNo = "";

    /**
     * OrdOrder serTotalFee.
     * @member {string} serTotalFee
     * @memberof OrdOrder
     * @instance
     */
    OrdOrder.prototype.serTotalFee = "";

    /**
     * OrdOrder serOrderType.
     * @member {string} serOrderType
     * @memberof OrdOrder
     * @instance
     */
    OrdOrder.prototype.serOrderType = "";

    /**
     * OrdOrder serPaymentType.
     * @member {string} serPaymentType
     * @memberof OrdOrder
     * @instance
     */
    OrdOrder.prototype.serPaymentType = "";

    /**
     * OrdOrder serOrderStatus.
     * @member {number} serOrderStatus
     * @memberof OrdOrder
     * @instance
     */
    OrdOrder.prototype.serOrderStatus = 0;

    /**
     * Creates a new OrdOrder instance using the specified properties.
     * @function create
     * @memberof OrdOrder
     * @static
     * @param {IOrdOrder=} [properties] Properties to set
     * @returns {OrdOrder} OrdOrder instance
     */
    OrdOrder.create = function create(properties) {
        return new OrdOrder(properties);
    };

    /**
     * Encodes the specified OrdOrder message. Does not implicitly {@link OrdOrder.verify|verify} messages.
     * @function encode
     * @memberof OrdOrder
     * @static
     * @param {IOrdOrder} message OrdOrder message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    OrdOrder.encode = function encode(message, writer) {
        if (!writer)
            writer = $Writer.create();
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            writer.uint32(/* id 1, wireType 2 =*/10).string(message.uuid);
        if (message.upper != null && message.hasOwnProperty("upper"))
            writer.uint32(/* id 2, wireType 2 =*/18).string(message.upper);
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            writer.uint32(/* id 3, wireType 2 =*/26).string(message.validFlag);
        if (message.creator != null && message.hasOwnProperty("creator"))
            writer.uint32(/* id 4, wireType 2 =*/34).string(message.creator);
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            writer.uint32(/* id 5, wireType 2 =*/42).string(message.createTime);
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            writer.uint32(/* id 6, wireType 2 =*/50).string(message.creatorIp);
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            writer.uint32(/* id 7, wireType 2 =*/58).string(message.lastModifier);
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            writer.uint32(/* id 8, wireType 2 =*/66).string(message.lastModifyTime);
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            writer.uint32(/* id 9, wireType 2 =*/74).string(message.lastModifierIp);
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            writer.uint32(/* id 10, wireType 2 =*/82).string(message.ownerOrganize);
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            writer.uint32(/* id 11, wireType 2 =*/90).string(message.ownerRole);
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            writer.uint32(/* id 12, wireType 2 =*/98).string(message.serNum);
        if (message.serMemo != null && message.hasOwnProperty("serMemo"))
            writer.uint32(/* id 13, wireType 2 =*/106).string(message.serMemo);
        if (message.serAudit != null && message.hasOwnProperty("serAudit"))
            writer.uint32(/* id 14, wireType 2 =*/114).string(message.serAudit);
        if (message.serUsing != null && message.hasOwnProperty("serUsing"))
            writer.uint32(/* id 15, wireType 2 =*/122).string(message.serUsing);
        if (message.serLabels != null && message.hasOwnProperty("serLabels"))
            writer.uint32(/* id 16, wireType 2 =*/130).string(message.serLabels);
        if (message.addressStr != null && message.hasOwnProperty("addressStr"))
            writer.uint32(/* id 17, wireType 2 =*/138).string(message.addressStr);
        if (message.addressDetail != null && message.hasOwnProperty("addressDetail"))
            writer.uint32(/* id 18, wireType 2 =*/146).string(message.addressDetail);
        if (message.receiverName != null && message.hasOwnProperty("receiverName"))
            writer.uint32(/* id 19, wireType 2 =*/154).string(message.receiverName);
        if (message.receiverPhone != null && message.hasOwnProperty("receiverPhone"))
            writer.uint32(/* id 20, wireType 2 =*/162).string(message.receiverPhone);
        if (message.serOrderNo != null && message.hasOwnProperty("serOrderNo"))
            writer.uint32(/* id 21, wireType 2 =*/170).string(message.serOrderNo);
        if (message.serTotalFee != null && message.hasOwnProperty("serTotalFee"))
            writer.uint32(/* id 22, wireType 2 =*/178).string(message.serTotalFee);
        if (message.serOrderType != null && message.hasOwnProperty("serOrderType"))
            writer.uint32(/* id 23, wireType 2 =*/186).string(message.serOrderType);
        if (message.serPaymentType != null && message.hasOwnProperty("serPaymentType"))
            writer.uint32(/* id 24, wireType 2 =*/194).string(message.serPaymentType);
        if (message.serOrderStatus != null && message.hasOwnProperty("serOrderStatus"))
            writer.uint32(/* id 25, wireType 0 =*/200).int32(message.serOrderStatus);
        return writer;
    };

    /**
     * Encodes the specified OrdOrder message, length delimited. Does not implicitly {@link OrdOrder.verify|verify} messages.
     * @function encodeDelimited
     * @memberof OrdOrder
     * @static
     * @param {IOrdOrder} message OrdOrder message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    OrdOrder.encodeDelimited = function encodeDelimited(message, writer) {
        return this.encode(message, writer).ldelim();
    };

    /**
     * Decodes an OrdOrder message from the specified reader or buffer.
     * @function decode
     * @memberof OrdOrder
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @param {number} [length] Message length if known beforehand
     * @returns {OrdOrder} OrdOrder
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    OrdOrder.decode = function decode(reader, length) {
        if (!(reader instanceof $Reader))
            reader = $Reader.create(reader);
        var end = length === undefined ? reader.len : reader.pos + length, message = new $root.OrdOrder();
        while (reader.pos < end) {
            var tag = reader.uint32();
            switch (tag >>> 3) {
            case 1:
                message.uuid = reader.string();
                break;
            case 2:
                message.upper = reader.string();
                break;
            case 3:
                message.validFlag = reader.string();
                break;
            case 4:
                message.creator = reader.string();
                break;
            case 5:
                message.createTime = reader.string();
                break;
            case 6:
                message.creatorIp = reader.string();
                break;
            case 7:
                message.lastModifier = reader.string();
                break;
            case 8:
                message.lastModifyTime = reader.string();
                break;
            case 9:
                message.lastModifierIp = reader.string();
                break;
            case 10:
                message.ownerOrganize = reader.string();
                break;
            case 11:
                message.ownerRole = reader.string();
                break;
            case 12:
                message.serNum = reader.string();
                break;
            case 13:
                message.serMemo = reader.string();
                break;
            case 14:
                message.serAudit = reader.string();
                break;
            case 15:
                message.serUsing = reader.string();
                break;
            case 16:
                message.serLabels = reader.string();
                break;
            case 17:
                message.addressStr = reader.string();
                break;
            case 18:
                message.addressDetail = reader.string();
                break;
            case 19:
                message.receiverName = reader.string();
                break;
            case 20:
                message.receiverPhone = reader.string();
                break;
            case 21:
                message.serOrderNo = reader.string();
                break;
            case 22:
                message.serTotalFee = reader.string();
                break;
            case 23:
                message.serOrderType = reader.string();
                break;
            case 24:
                message.serPaymentType = reader.string();
                break;
            case 25:
                message.serOrderStatus = reader.int32();
                break;
            default:
                reader.skipType(tag & 7);
                break;
            }
        }
        return message;
    };

    /**
     * Decodes an OrdOrder message from the specified reader or buffer, length delimited.
     * @function decodeDelimited
     * @memberof OrdOrder
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @returns {OrdOrder} OrdOrder
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    OrdOrder.decodeDelimited = function decodeDelimited(reader) {
        if (!(reader instanceof $Reader))
            reader = new $Reader(reader);
        return this.decode(reader, reader.uint32());
    };

    /**
     * Verifies an OrdOrder message.
     * @function verify
     * @memberof OrdOrder
     * @static
     * @param {Object.<string,*>} message Plain object to verify
     * @returns {string|null} `null` if valid, otherwise the reason why it is not
     */
    OrdOrder.verify = function verify(message) {
        if (typeof message !== "object" || message === null)
            return "object expected";
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            if (!$util.isString(message.uuid))
                return "uuid: string expected";
        if (message.upper != null && message.hasOwnProperty("upper"))
            if (!$util.isString(message.upper))
                return "upper: string expected";
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            if (!$util.isString(message.validFlag))
                return "validFlag: string expected";
        if (message.creator != null && message.hasOwnProperty("creator"))
            if (!$util.isString(message.creator))
                return "creator: string expected";
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            if (!$util.isString(message.createTime))
                return "createTime: string expected";
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            if (!$util.isString(message.creatorIp))
                return "creatorIp: string expected";
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            if (!$util.isString(message.lastModifier))
                return "lastModifier: string expected";
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            if (!$util.isString(message.lastModifyTime))
                return "lastModifyTime: string expected";
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            if (!$util.isString(message.lastModifierIp))
                return "lastModifierIp: string expected";
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            if (!$util.isString(message.ownerOrganize))
                return "ownerOrganize: string expected";
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            if (!$util.isString(message.ownerRole))
                return "ownerRole: string expected";
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            if (!$util.isString(message.serNum))
                return "serNum: string expected";
        if (message.serMemo != null && message.hasOwnProperty("serMemo"))
            if (!$util.isString(message.serMemo))
                return "serMemo: string expected";
        if (message.serAudit != null && message.hasOwnProperty("serAudit"))
            if (!$util.isString(message.serAudit))
                return "serAudit: string expected";
        if (message.serUsing != null && message.hasOwnProperty("serUsing"))
            if (!$util.isString(message.serUsing))
                return "serUsing: string expected";
        if (message.serLabels != null && message.hasOwnProperty("serLabels"))
            if (!$util.isString(message.serLabels))
                return "serLabels: string expected";
        if (message.addressStr != null && message.hasOwnProperty("addressStr"))
            if (!$util.isString(message.addressStr))
                return "addressStr: string expected";
        if (message.addressDetail != null && message.hasOwnProperty("addressDetail"))
            if (!$util.isString(message.addressDetail))
                return "addressDetail: string expected";
        if (message.receiverName != null && message.hasOwnProperty("receiverName"))
            if (!$util.isString(message.receiverName))
                return "receiverName: string expected";
        if (message.receiverPhone != null && message.hasOwnProperty("receiverPhone"))
            if (!$util.isString(message.receiverPhone))
                return "receiverPhone: string expected";
        if (message.serOrderNo != null && message.hasOwnProperty("serOrderNo"))
            if (!$util.isString(message.serOrderNo))
                return "serOrderNo: string expected";
        if (message.serTotalFee != null && message.hasOwnProperty("serTotalFee"))
            if (!$util.isString(message.serTotalFee))
                return "serTotalFee: string expected";
        if (message.serOrderType != null && message.hasOwnProperty("serOrderType"))
            if (!$util.isString(message.serOrderType))
                return "serOrderType: string expected";
        if (message.serPaymentType != null && message.hasOwnProperty("serPaymentType"))
            if (!$util.isString(message.serPaymentType))
                return "serPaymentType: string expected";
        if (message.serOrderStatus != null && message.hasOwnProperty("serOrderStatus"))
            if (!$util.isInteger(message.serOrderStatus))
                return "serOrderStatus: integer expected";
        return null;
    };

    /**
     * Creates an OrdOrder message from a plain object. Also converts values to their respective internal types.
     * @function fromObject
     * @memberof OrdOrder
     * @static
     * @param {Object.<string,*>} object Plain object
     * @returns {OrdOrder} OrdOrder
     */
    OrdOrder.fromObject = function fromObject(object) {
        if (object instanceof $root.OrdOrder)
            return object;
        var message = new $root.OrdOrder();
        if (object.uuid != null)
            message.uuid = String(object.uuid);
        if (object.upper != null)
            message.upper = String(object.upper);
        if (object.validFlag != null)
            message.validFlag = String(object.validFlag);
        if (object.creator != null)
            message.creator = String(object.creator);
        if (object.createTime != null)
            message.createTime = String(object.createTime);
        if (object.creatorIp != null)
            message.creatorIp = String(object.creatorIp);
        if (object.lastModifier != null)
            message.lastModifier = String(object.lastModifier);
        if (object.lastModifyTime != null)
            message.lastModifyTime = String(object.lastModifyTime);
        if (object.lastModifierIp != null)
            message.lastModifierIp = String(object.lastModifierIp);
        if (object.ownerOrganize != null)
            message.ownerOrganize = String(object.ownerOrganize);
        if (object.ownerRole != null)
            message.ownerRole = String(object.ownerRole);
        if (object.serNum != null)
            message.serNum = String(object.serNum);
        if (object.serMemo != null)
            message.serMemo = String(object.serMemo);
        if (object.serAudit != null)
            message.serAudit = String(object.serAudit);
        if (object.serUsing != null)
            message.serUsing = String(object.serUsing);
        if (object.serLabels != null)
            message.serLabels = String(object.serLabels);
        if (object.addressStr != null)
            message.addressStr = String(object.addressStr);
        if (object.addressDetail != null)
            message.addressDetail = String(object.addressDetail);
        if (object.receiverName != null)
            message.receiverName = String(object.receiverName);
        if (object.receiverPhone != null)
            message.receiverPhone = String(object.receiverPhone);
        if (object.serOrderNo != null)
            message.serOrderNo = String(object.serOrderNo);
        if (object.serTotalFee != null)
            message.serTotalFee = String(object.serTotalFee);
        if (object.serOrderType != null)
            message.serOrderType = String(object.serOrderType);
        if (object.serPaymentType != null)
            message.serPaymentType = String(object.serPaymentType);
        if (object.serOrderStatus != null)
            message.serOrderStatus = object.serOrderStatus | 0;
        return message;
    };

    /**
     * Creates a plain object from an OrdOrder message. Also converts values to other types if specified.
     * @function toObject
     * @memberof OrdOrder
     * @static
     * @param {OrdOrder} message OrdOrder
     * @param {$protobuf.IConversionOptions} [options] Conversion options
     * @returns {Object.<string,*>} Plain object
     */
    OrdOrder.toObject = function toObject(message, options) {
        if (!options)
            options = {};
        var object = {};
        if (options.defaults) {
            object.uuid = "";
            object.upper = "";
            object.validFlag = "";
            object.creator = "";
            object.createTime = "";
            object.creatorIp = "";
            object.lastModifier = "";
            object.lastModifyTime = "";
            object.lastModifierIp = "";
            object.ownerOrganize = "";
            object.ownerRole = "";
            object.serNum = "";
            object.serMemo = "";
            object.serAudit = "";
            object.serUsing = "";
            object.serLabels = "";
            object.addressStr = "";
            object.addressDetail = "";
            object.receiverName = "";
            object.receiverPhone = "";
            object.serOrderNo = "";
            object.serTotalFee = "";
            object.serOrderType = "";
            object.serPaymentType = "";
            object.serOrderStatus = 0;
        }
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            object.uuid = message.uuid;
        if (message.upper != null && message.hasOwnProperty("upper"))
            object.upper = message.upper;
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            object.validFlag = message.validFlag;
        if (message.creator != null && message.hasOwnProperty("creator"))
            object.creator = message.creator;
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            object.createTime = message.createTime;
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            object.creatorIp = message.creatorIp;
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            object.lastModifier = message.lastModifier;
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            object.lastModifyTime = message.lastModifyTime;
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            object.lastModifierIp = message.lastModifierIp;
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            object.ownerOrganize = message.ownerOrganize;
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            object.ownerRole = message.ownerRole;
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            object.serNum = message.serNum;
        if (message.serMemo != null && message.hasOwnProperty("serMemo"))
            object.serMemo = message.serMemo;
        if (message.serAudit != null && message.hasOwnProperty("serAudit"))
            object.serAudit = message.serAudit;
        if (message.serUsing != null && message.hasOwnProperty("serUsing"))
            object.serUsing = message.serUsing;
        if (message.serLabels != null && message.hasOwnProperty("serLabels"))
            object.serLabels = message.serLabels;
        if (message.addressStr != null && message.hasOwnProperty("addressStr"))
            object.addressStr = message.addressStr;
        if (message.addressDetail != null && message.hasOwnProperty("addressDetail"))
            object.addressDetail = message.addressDetail;
        if (message.receiverName != null && message.hasOwnProperty("receiverName"))
            object.receiverName = message.receiverName;
        if (message.receiverPhone != null && message.hasOwnProperty("receiverPhone"))
            object.receiverPhone = message.receiverPhone;
        if (message.serOrderNo != null && message.hasOwnProperty("serOrderNo"))
            object.serOrderNo = message.serOrderNo;
        if (message.serTotalFee != null && message.hasOwnProperty("serTotalFee"))
            object.serTotalFee = message.serTotalFee;
        if (message.serOrderType != null && message.hasOwnProperty("serOrderType"))
            object.serOrderType = message.serOrderType;
        if (message.serPaymentType != null && message.hasOwnProperty("serPaymentType"))
            object.serPaymentType = message.serPaymentType;
        if (message.serOrderStatus != null && message.hasOwnProperty("serOrderStatus"))
            object.serOrderStatus = message.serOrderStatus;
        return object;
    };

    /**
     * Converts this OrdOrder to JSON.
     * @function toJSON
     * @memberof OrdOrder
     * @instance
     * @returns {Object.<string,*>} JSON object
     */
    OrdOrder.prototype.toJSON = function toJSON() {
        return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
    };

    return OrdOrder;
})();

$root.OrdOrderCondition = (function() {

    /**
     * Properties of an OrdOrderCondition.
     * @exports IOrdOrderCondition
     * @interface IOrdOrderCondition
     * @property {string|null} [uuid] OrdOrderCondition uuid
     * @property {string|null} [upper] OrdOrderCondition upper
     * @property {string|null} [validFlag] OrdOrderCondition validFlag
     * @property {string|null} [creator] OrdOrderCondition creator
     * @property {string|null} [createTime] OrdOrderCondition createTime
     * @property {string|null} [creatorIp] OrdOrderCondition creatorIp
     * @property {string|null} [lastModifier] OrdOrderCondition lastModifier
     * @property {string|null} [lastModifyTime] OrdOrderCondition lastModifyTime
     * @property {string|null} [lastModifierIp] OrdOrderCondition lastModifierIp
     * @property {string|null} [ownerOrganize] OrdOrderCondition ownerOrganize
     * @property {string|null} [ownerRole] OrdOrderCondition ownerRole
     * @property {string|null} [serNum] OrdOrderCondition serNum
     * @property {string|null} [serMemo] OrdOrderCondition serMemo
     * @property {string|null} [serAudit] OrdOrderCondition serAudit
     * @property {string|null} [serUsing] OrdOrderCondition serUsing
     * @property {string|null} [serLabels] OrdOrderCondition serLabels
     * @property {Array.<string>|null} [uuidList] OrdOrderCondition uuidList
     * @property {string|null} [createTimeOUTSET] OrdOrderCondition createTimeOUTSET
     * @property {string|null} [createTimeFINISH] OrdOrderCondition createTimeFINISH
     * @property {string|null} [lastModifyTimeOUTSET] OrdOrderCondition lastModifyTimeOUTSET
     * @property {string|null} [lastModifyTimeFINISH] OrdOrderCondition lastModifyTimeFINISH
     * @property {Array.<string>|null} [serAuditList] OrdOrderCondition serAuditList
     * @property {string|null} [serOrderNo] OrdOrderCondition serOrderNo
     * @property {Array.<number>|null} [orderStatusList] OrdOrderCondition orderStatusList
     * @property {string|null} [userName] OrdOrderCondition userName
     * @property {string|null} [itemNames] OrdOrderCondition itemNames
     * @property {string|null} [receiverName] OrdOrderCondition receiverName
     * @property {Array.<string>|null} [serOrderTypeList] OrdOrderCondition serOrderTypeList
     * @property {string|null} [receiverPhone] OrdOrderCondition receiverPhone
     * @property {string|null} [serTotalFeeLeft] OrdOrderCondition serTotalFeeLeft
     * @property {string|null} [serTotalFeeRight] OrdOrderCondition serTotalFeeRight
     */

    /**
     * Constructs a new OrdOrderCondition.
     * @exports OrdOrderCondition
     * @classdesc Represents an OrdOrderCondition.
     * @implements IOrdOrderCondition
     * @constructor
     * @param {IOrdOrderCondition=} [properties] Properties to set
     */
    function OrdOrderCondition(properties) {
        this.uuidList = [];
        this.serAuditList = [];
        this.orderStatusList = [];
        this.serOrderTypeList = [];
        if (properties)
            for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
                if (properties[keys[i]] != null)
                    this[keys[i]] = properties[keys[i]];
    }

    /**
     * OrdOrderCondition uuid.
     * @member {string} uuid
     * @memberof OrdOrderCondition
     * @instance
     */
    OrdOrderCondition.prototype.uuid = "";

    /**
     * OrdOrderCondition upper.
     * @member {string} upper
     * @memberof OrdOrderCondition
     * @instance
     */
    OrdOrderCondition.prototype.upper = "";

    /**
     * OrdOrderCondition validFlag.
     * @member {string} validFlag
     * @memberof OrdOrderCondition
     * @instance
     */
    OrdOrderCondition.prototype.validFlag = "";

    /**
     * OrdOrderCondition creator.
     * @member {string} creator
     * @memberof OrdOrderCondition
     * @instance
     */
    OrdOrderCondition.prototype.creator = "";

    /**
     * OrdOrderCondition createTime.
     * @member {string} createTime
     * @memberof OrdOrderCondition
     * @instance
     */
    OrdOrderCondition.prototype.createTime = "";

    /**
     * OrdOrderCondition creatorIp.
     * @member {string} creatorIp
     * @memberof OrdOrderCondition
     * @instance
     */
    OrdOrderCondition.prototype.creatorIp = "";

    /**
     * OrdOrderCondition lastModifier.
     * @member {string} lastModifier
     * @memberof OrdOrderCondition
     * @instance
     */
    OrdOrderCondition.prototype.lastModifier = "";

    /**
     * OrdOrderCondition lastModifyTime.
     * @member {string} lastModifyTime
     * @memberof OrdOrderCondition
     * @instance
     */
    OrdOrderCondition.prototype.lastModifyTime = "";

    /**
     * OrdOrderCondition lastModifierIp.
     * @member {string} lastModifierIp
     * @memberof OrdOrderCondition
     * @instance
     */
    OrdOrderCondition.prototype.lastModifierIp = "";

    /**
     * OrdOrderCondition ownerOrganize.
     * @member {string} ownerOrganize
     * @memberof OrdOrderCondition
     * @instance
     */
    OrdOrderCondition.prototype.ownerOrganize = "";

    /**
     * OrdOrderCondition ownerRole.
     * @member {string} ownerRole
     * @memberof OrdOrderCondition
     * @instance
     */
    OrdOrderCondition.prototype.ownerRole = "";

    /**
     * OrdOrderCondition serNum.
     * @member {string} serNum
     * @memberof OrdOrderCondition
     * @instance
     */
    OrdOrderCondition.prototype.serNum = "";

    /**
     * OrdOrderCondition serMemo.
     * @member {string} serMemo
     * @memberof OrdOrderCondition
     * @instance
     */
    OrdOrderCondition.prototype.serMemo = "";

    /**
     * OrdOrderCondition serAudit.
     * @member {string} serAudit
     * @memberof OrdOrderCondition
     * @instance
     */
    OrdOrderCondition.prototype.serAudit = "";

    /**
     * OrdOrderCondition serUsing.
     * @member {string} serUsing
     * @memberof OrdOrderCondition
     * @instance
     */
    OrdOrderCondition.prototype.serUsing = "";

    /**
     * OrdOrderCondition serLabels.
     * @member {string} serLabels
     * @memberof OrdOrderCondition
     * @instance
     */
    OrdOrderCondition.prototype.serLabels = "";

    /**
     * OrdOrderCondition uuidList.
     * @member {Array.<string>} uuidList
     * @memberof OrdOrderCondition
     * @instance
     */
    OrdOrderCondition.prototype.uuidList = $util.emptyArray;

    /**
     * OrdOrderCondition createTimeOUTSET.
     * @member {string} createTimeOUTSET
     * @memberof OrdOrderCondition
     * @instance
     */
    OrdOrderCondition.prototype.createTimeOUTSET = "";

    /**
     * OrdOrderCondition createTimeFINISH.
     * @member {string} createTimeFINISH
     * @memberof OrdOrderCondition
     * @instance
     */
    OrdOrderCondition.prototype.createTimeFINISH = "";

    /**
     * OrdOrderCondition lastModifyTimeOUTSET.
     * @member {string} lastModifyTimeOUTSET
     * @memberof OrdOrderCondition
     * @instance
     */
    OrdOrderCondition.prototype.lastModifyTimeOUTSET = "";

    /**
     * OrdOrderCondition lastModifyTimeFINISH.
     * @member {string} lastModifyTimeFINISH
     * @memberof OrdOrderCondition
     * @instance
     */
    OrdOrderCondition.prototype.lastModifyTimeFINISH = "";

    /**
     * OrdOrderCondition serAuditList.
     * @member {Array.<string>} serAuditList
     * @memberof OrdOrderCondition
     * @instance
     */
    OrdOrderCondition.prototype.serAuditList = $util.emptyArray;

    /**
     * OrdOrderCondition serOrderNo.
     * @member {string} serOrderNo
     * @memberof OrdOrderCondition
     * @instance
     */
    OrdOrderCondition.prototype.serOrderNo = "";

    /**
     * OrdOrderCondition orderStatusList.
     * @member {Array.<number>} orderStatusList
     * @memberof OrdOrderCondition
     * @instance
     */
    OrdOrderCondition.prototype.orderStatusList = $util.emptyArray;

    /**
     * OrdOrderCondition userName.
     * @member {string} userName
     * @memberof OrdOrderCondition
     * @instance
     */
    OrdOrderCondition.prototype.userName = "";

    /**
     * OrdOrderCondition itemNames.
     * @member {string} itemNames
     * @memberof OrdOrderCondition
     * @instance
     */
    OrdOrderCondition.prototype.itemNames = "";

    /**
     * OrdOrderCondition receiverName.
     * @member {string} receiverName
     * @memberof OrdOrderCondition
     * @instance
     */
    OrdOrderCondition.prototype.receiverName = "";

    /**
     * OrdOrderCondition serOrderTypeList.
     * @member {Array.<string>} serOrderTypeList
     * @memberof OrdOrderCondition
     * @instance
     */
    OrdOrderCondition.prototype.serOrderTypeList = $util.emptyArray;

    /**
     * OrdOrderCondition receiverPhone.
     * @member {string} receiverPhone
     * @memberof OrdOrderCondition
     * @instance
     */
    OrdOrderCondition.prototype.receiverPhone = "";

    /**
     * OrdOrderCondition serTotalFeeLeft.
     * @member {string} serTotalFeeLeft
     * @memberof OrdOrderCondition
     * @instance
     */
    OrdOrderCondition.prototype.serTotalFeeLeft = "";

    /**
     * OrdOrderCondition serTotalFeeRight.
     * @member {string} serTotalFeeRight
     * @memberof OrdOrderCondition
     * @instance
     */
    OrdOrderCondition.prototype.serTotalFeeRight = "";

    /**
     * Creates a new OrdOrderCondition instance using the specified properties.
     * @function create
     * @memberof OrdOrderCondition
     * @static
     * @param {IOrdOrderCondition=} [properties] Properties to set
     * @returns {OrdOrderCondition} OrdOrderCondition instance
     */
    OrdOrderCondition.create = function create(properties) {
        return new OrdOrderCondition(properties);
    };

    /**
     * Encodes the specified OrdOrderCondition message. Does not implicitly {@link OrdOrderCondition.verify|verify} messages.
     * @function encode
     * @memberof OrdOrderCondition
     * @static
     * @param {IOrdOrderCondition} message OrdOrderCondition message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    OrdOrderCondition.encode = function encode(message, writer) {
        if (!writer)
            writer = $Writer.create();
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            writer.uint32(/* id 1, wireType 2 =*/10).string(message.uuid);
        if (message.upper != null && message.hasOwnProperty("upper"))
            writer.uint32(/* id 2, wireType 2 =*/18).string(message.upper);
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            writer.uint32(/* id 3, wireType 2 =*/26).string(message.validFlag);
        if (message.creator != null && message.hasOwnProperty("creator"))
            writer.uint32(/* id 4, wireType 2 =*/34).string(message.creator);
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            writer.uint32(/* id 5, wireType 2 =*/42).string(message.createTime);
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            writer.uint32(/* id 6, wireType 2 =*/50).string(message.creatorIp);
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            writer.uint32(/* id 7, wireType 2 =*/58).string(message.lastModifier);
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            writer.uint32(/* id 8, wireType 2 =*/66).string(message.lastModifyTime);
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            writer.uint32(/* id 9, wireType 2 =*/74).string(message.lastModifierIp);
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            writer.uint32(/* id 10, wireType 2 =*/82).string(message.ownerOrganize);
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            writer.uint32(/* id 11, wireType 2 =*/90).string(message.ownerRole);
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            writer.uint32(/* id 12, wireType 2 =*/98).string(message.serNum);
        if (message.serMemo != null && message.hasOwnProperty("serMemo"))
            writer.uint32(/* id 13, wireType 2 =*/106).string(message.serMemo);
        if (message.serAudit != null && message.hasOwnProperty("serAudit"))
            writer.uint32(/* id 14, wireType 2 =*/114).string(message.serAudit);
        if (message.serUsing != null && message.hasOwnProperty("serUsing"))
            writer.uint32(/* id 15, wireType 2 =*/122).string(message.serUsing);
        if (message.serLabels != null && message.hasOwnProperty("serLabels"))
            writer.uint32(/* id 16, wireType 2 =*/130).string(message.serLabels);
        if (message.uuidList != null && message.uuidList.length)
            for (var i = 0; i < message.uuidList.length; ++i)
                writer.uint32(/* id 17, wireType 2 =*/138).string(message.uuidList[i]);
        if (message.createTimeOUTSET != null && message.hasOwnProperty("createTimeOUTSET"))
            writer.uint32(/* id 18, wireType 2 =*/146).string(message.createTimeOUTSET);
        if (message.createTimeFINISH != null && message.hasOwnProperty("createTimeFINISH"))
            writer.uint32(/* id 19, wireType 2 =*/154).string(message.createTimeFINISH);
        if (message.lastModifyTimeOUTSET != null && message.hasOwnProperty("lastModifyTimeOUTSET"))
            writer.uint32(/* id 20, wireType 2 =*/162).string(message.lastModifyTimeOUTSET);
        if (message.lastModifyTimeFINISH != null && message.hasOwnProperty("lastModifyTimeFINISH"))
            writer.uint32(/* id 21, wireType 2 =*/170).string(message.lastModifyTimeFINISH);
        if (message.serAuditList != null && message.serAuditList.length)
            for (var i = 0; i < message.serAuditList.length; ++i)
                writer.uint32(/* id 22, wireType 2 =*/178).string(message.serAuditList[i]);
        if (message.serOrderNo != null && message.hasOwnProperty("serOrderNo"))
            writer.uint32(/* id 23, wireType 2 =*/186).string(message.serOrderNo);
        if (message.orderStatusList != null && message.orderStatusList.length)
            for (var i = 0; i < message.orderStatusList.length; ++i)
                writer.uint32(/* id 24, wireType 0 =*/192).int32(message.orderStatusList[i]);
        if (message.userName != null && message.hasOwnProperty("userName"))
            writer.uint32(/* id 25, wireType 2 =*/202).string(message.userName);
        if (message.itemNames != null && message.hasOwnProperty("itemNames"))
            writer.uint32(/* id 26, wireType 2 =*/210).string(message.itemNames);
        if (message.receiverName != null && message.hasOwnProperty("receiverName"))
            writer.uint32(/* id 27, wireType 2 =*/218).string(message.receiverName);
        if (message.serOrderTypeList != null && message.serOrderTypeList.length)
            for (var i = 0; i < message.serOrderTypeList.length; ++i)
                writer.uint32(/* id 28, wireType 2 =*/226).string(message.serOrderTypeList[i]);
        if (message.receiverPhone != null && message.hasOwnProperty("receiverPhone"))
            writer.uint32(/* id 29, wireType 2 =*/234).string(message.receiverPhone);
        if (message.serTotalFeeLeft != null && message.hasOwnProperty("serTotalFeeLeft"))
            writer.uint32(/* id 30, wireType 2 =*/242).string(message.serTotalFeeLeft);
        if (message.serTotalFeeRight != null && message.hasOwnProperty("serTotalFeeRight"))
            writer.uint32(/* id 31, wireType 2 =*/250).string(message.serTotalFeeRight);
        return writer;
    };

    /**
     * Encodes the specified OrdOrderCondition message, length delimited. Does not implicitly {@link OrdOrderCondition.verify|verify} messages.
     * @function encodeDelimited
     * @memberof OrdOrderCondition
     * @static
     * @param {IOrdOrderCondition} message OrdOrderCondition message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    OrdOrderCondition.encodeDelimited = function encodeDelimited(message, writer) {
        return this.encode(message, writer).ldelim();
    };

    /**
     * Decodes an OrdOrderCondition message from the specified reader or buffer.
     * @function decode
     * @memberof OrdOrderCondition
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @param {number} [length] Message length if known beforehand
     * @returns {OrdOrderCondition} OrdOrderCondition
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    OrdOrderCondition.decode = function decode(reader, length) {
        if (!(reader instanceof $Reader))
            reader = $Reader.create(reader);
        var end = length === undefined ? reader.len : reader.pos + length, message = new $root.OrdOrderCondition();
        while (reader.pos < end) {
            var tag = reader.uint32();
            switch (tag >>> 3) {
            case 1:
                message.uuid = reader.string();
                break;
            case 2:
                message.upper = reader.string();
                break;
            case 3:
                message.validFlag = reader.string();
                break;
            case 4:
                message.creator = reader.string();
                break;
            case 5:
                message.createTime = reader.string();
                break;
            case 6:
                message.creatorIp = reader.string();
                break;
            case 7:
                message.lastModifier = reader.string();
                break;
            case 8:
                message.lastModifyTime = reader.string();
                break;
            case 9:
                message.lastModifierIp = reader.string();
                break;
            case 10:
                message.ownerOrganize = reader.string();
                break;
            case 11:
                message.ownerRole = reader.string();
                break;
            case 12:
                message.serNum = reader.string();
                break;
            case 13:
                message.serMemo = reader.string();
                break;
            case 14:
                message.serAudit = reader.string();
                break;
            case 15:
                message.serUsing = reader.string();
                break;
            case 16:
                message.serLabels = reader.string();
                break;
            case 17:
                if (!(message.uuidList && message.uuidList.length))
                    message.uuidList = [];
                message.uuidList.push(reader.string());
                break;
            case 18:
                message.createTimeOUTSET = reader.string();
                break;
            case 19:
                message.createTimeFINISH = reader.string();
                break;
            case 20:
                message.lastModifyTimeOUTSET = reader.string();
                break;
            case 21:
                message.lastModifyTimeFINISH = reader.string();
                break;
            case 22:
                if (!(message.serAuditList && message.serAuditList.length))
                    message.serAuditList = [];
                message.serAuditList.push(reader.string());
                break;
            case 23:
                message.serOrderNo = reader.string();
                break;
            case 24:
                if (!(message.orderStatusList && message.orderStatusList.length))
                    message.orderStatusList = [];
                if ((tag & 7) === 2) {
                    var end2 = reader.uint32() + reader.pos;
                    while (reader.pos < end2)
                        message.orderStatusList.push(reader.int32());
                } else
                    message.orderStatusList.push(reader.int32());
                break;
                case 25:
                    message.userName = reader.string();
                    break;
                case 26:
                    message.itemNames = reader.string();
                    break;
                case 27:
                    message.receiverName = reader.string();
                    break;
                case 28:
                    if (!(message.serOrderTypeList && message.serOrderTypeList.length))
                        message.serOrderTypeList = [];
                    message.serOrderTypeList.push(reader.string());
                    break;
                case 29:
                    message.receiverPhone = reader.string();
                    break;
                case 30:
                    message.serTotalFeeLeft = reader.string();
                    break;
                case 31:
                    message.serTotalFeeRight = reader.string();
                    break;
            default:
                reader.skipType(tag & 7);
                break;
            }
        }
        return message;
    };

    /**
     * Decodes an OrdOrderCondition message from the specified reader or buffer, length delimited.
     * @function decodeDelimited
     * @memberof OrdOrderCondition
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @returns {OrdOrderCondition} OrdOrderCondition
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    OrdOrderCondition.decodeDelimited = function decodeDelimited(reader) {
        if (!(reader instanceof $Reader))
            reader = new $Reader(reader);
        return this.decode(reader, reader.uint32());
    };

    /**
     * Verifies an OrdOrderCondition message.
     * @function verify
     * @memberof OrdOrderCondition
     * @static
     * @param {Object.<string,*>} message Plain object to verify
     * @returns {string|null} `null` if valid, otherwise the reason why it is not
     */
    OrdOrderCondition.verify = function verify(message) {
        if (typeof message !== "object" || message === null)
            return "object expected";
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            if (!$util.isString(message.uuid))
                return "uuid: string expected";
        if (message.upper != null && message.hasOwnProperty("upper"))
            if (!$util.isString(message.upper))
                return "upper: string expected";
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            if (!$util.isString(message.validFlag))
                return "validFlag: string expected";
        if (message.creator != null && message.hasOwnProperty("creator"))
            if (!$util.isString(message.creator))
                return "creator: string expected";
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            if (!$util.isString(message.createTime))
                return "createTime: string expected";
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            if (!$util.isString(message.creatorIp))
                return "creatorIp: string expected";
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            if (!$util.isString(message.lastModifier))
                return "lastModifier: string expected";
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            if (!$util.isString(message.lastModifyTime))
                return "lastModifyTime: string expected";
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            if (!$util.isString(message.lastModifierIp))
                return "lastModifierIp: string expected";
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            if (!$util.isString(message.ownerOrganize))
                return "ownerOrganize: string expected";
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            if (!$util.isString(message.ownerRole))
                return "ownerRole: string expected";
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            if (!$util.isString(message.serNum))
                return "serNum: string expected";
        if (message.serMemo != null && message.hasOwnProperty("serMemo"))
            if (!$util.isString(message.serMemo))
                return "serMemo: string expected";
        if (message.serAudit != null && message.hasOwnProperty("serAudit"))
            if (!$util.isString(message.serAudit))
                return "serAudit: string expected";
        if (message.serUsing != null && message.hasOwnProperty("serUsing"))
            if (!$util.isString(message.serUsing))
                return "serUsing: string expected";
        if (message.serLabels != null && message.hasOwnProperty("serLabels"))
            if (!$util.isString(message.serLabels))
                return "serLabels: string expected";
        if (message.uuidList != null && message.hasOwnProperty("uuidList")) {
            if (!Array.isArray(message.uuidList))
                return "uuidList: array expected";
            for (var i = 0; i < message.uuidList.length; ++i)
                if (!$util.isString(message.uuidList[i]))
                    return "uuidList: string[] expected";
        }
        if (message.createTimeOUTSET != null && message.hasOwnProperty("createTimeOUTSET"))
            if (!$util.isString(message.createTimeOUTSET))
                return "createTimeOUTSET: string expected";
        if (message.createTimeFINISH != null && message.hasOwnProperty("createTimeFINISH"))
            if (!$util.isString(message.createTimeFINISH))
                return "createTimeFINISH: string expected";
        if (message.lastModifyTimeOUTSET != null && message.hasOwnProperty("lastModifyTimeOUTSET"))
            if (!$util.isString(message.lastModifyTimeOUTSET))
                return "lastModifyTimeOUTSET: string expected";
        if (message.lastModifyTimeFINISH != null && message.hasOwnProperty("lastModifyTimeFINISH"))
            if (!$util.isString(message.lastModifyTimeFINISH))
                return "lastModifyTimeFINISH: string expected";
        if (message.serAuditList != null && message.hasOwnProperty("serAuditList")) {
            if (!Array.isArray(message.serAuditList))
                return "serAuditList: array expected";
            for (var i = 0; i < message.serAuditList.length; ++i)
                if (!$util.isString(message.serAuditList[i]))
                    return "serAuditList: string[] expected";
        }
        if (message.serOrderNo != null && message.hasOwnProperty("serOrderNo"))
            if (!$util.isString(message.serOrderNo))
                return "serOrderNo: string expected";
        if (message.orderStatusList != null && message.hasOwnProperty("orderStatusList")) {
            if (!Array.isArray(message.orderStatusList))
                return "orderStatusList: array expected";
            for (var i = 0; i < message.orderStatusList.length; ++i)
                if (!$util.isInteger(message.orderStatusList[i]))
                    return "orderStatusList: integer[] expected";
        }
        if (message.userName != null && message.hasOwnProperty("userName"))
            if (!$util.isString(message.userName))
                return "userName: string expected";
        if (message.itemNames != null && message.hasOwnProperty("itemNames"))
            if (!$util.isString(message.itemNames))
                return "itemNames: string expected";
        if (message.receiverName != null && message.hasOwnProperty("receiverName"))
            if (!$util.isString(message.receiverName))
                return "receiverName: string expected";
        if (message.serOrderTypeList != null && message.hasOwnProperty("serOrderTypeList")) {
            if (!Array.isArray(message.serOrderTypeList))
                return "serOrderTypeList: array expected";
            for (var i = 0; i < message.serOrderTypeList.length; ++i)
                if (!$util.isString(message.serOrderTypeList[i]))
                    return "serOrderTypeList: string[] expected";
        }
        if (message.receiverPhone != null && message.hasOwnProperty("receiverPhone"))
            if (!$util.isString(message.receiverPhone))
                return "receiverPhone: string expected";
        if (message.serTotalFeeLeft != null && message.hasOwnProperty("serTotalFeeLeft"))
            if (!$util.isString(message.serTotalFeeLeft))
                return "serTotalFeeLeft: string expected";
        if (message.serTotalFeeRight != null && message.hasOwnProperty("serTotalFeeRight"))
            if (!$util.isString(message.serTotalFeeRight))
                return "serTotalFeeRight: string expected";
        return null;
    };

    /**
     * Creates an OrdOrderCondition message from a plain object. Also converts values to their respective internal types.
     * @function fromObject
     * @memberof OrdOrderCondition
     * @static
     * @param {Object.<string,*>} object Plain object
     * @returns {OrdOrderCondition} OrdOrderCondition
     */
    OrdOrderCondition.fromObject = function fromObject(object) {
        if (object instanceof $root.OrdOrderCondition)
            return object;
        var message = new $root.OrdOrderCondition();
        if (object.uuid != null)
            message.uuid = String(object.uuid);
        if (object.upper != null)
            message.upper = String(object.upper);
        if (object.validFlag != null)
            message.validFlag = String(object.validFlag);
        if (object.creator != null)
            message.creator = String(object.creator);
        if (object.createTime != null)
            message.createTime = String(object.createTime);
        if (object.creatorIp != null)
            message.creatorIp = String(object.creatorIp);
        if (object.lastModifier != null)
            message.lastModifier = String(object.lastModifier);
        if (object.lastModifyTime != null)
            message.lastModifyTime = String(object.lastModifyTime);
        if (object.lastModifierIp != null)
            message.lastModifierIp = String(object.lastModifierIp);
        if (object.ownerOrganize != null)
            message.ownerOrganize = String(object.ownerOrganize);
        if (object.ownerRole != null)
            message.ownerRole = String(object.ownerRole);
        if (object.serNum != null)
            message.serNum = String(object.serNum);
        if (object.serMemo != null)
            message.serMemo = String(object.serMemo);
        if (object.serAudit != null)
            message.serAudit = String(object.serAudit);
        if (object.serUsing != null)
            message.serUsing = String(object.serUsing);
        if (object.serLabels != null)
            message.serLabels = String(object.serLabels);
        if (object.uuidList) {
            if (!Array.isArray(object.uuidList))
                throw TypeError(".OrdOrderCondition.uuidList: array expected");
            message.uuidList = [];
            for (var i = 0; i < object.uuidList.length; ++i)
                message.uuidList[i] = String(object.uuidList[i]);
        }
        if (object.createTimeOUTSET != null)
            message.createTimeOUTSET = String(object.createTimeOUTSET);
        if (object.createTimeFINISH != null)
            message.createTimeFINISH = String(object.createTimeFINISH);
        if (object.lastModifyTimeOUTSET != null)
            message.lastModifyTimeOUTSET = String(object.lastModifyTimeOUTSET);
        if (object.lastModifyTimeFINISH != null)
            message.lastModifyTimeFINISH = String(object.lastModifyTimeFINISH);
        if (object.serAuditList) {
            if (!Array.isArray(object.serAuditList))
                throw TypeError(".OrdOrderCondition.serAuditList: array expected");
            message.serAuditList = [];
            for (var i = 0; i < object.serAuditList.length; ++i)
                message.serAuditList[i] = String(object.serAuditList[i]);
        }
        if (object.serOrderNo != null)
            message.serOrderNo = String(object.serOrderNo);
        if (object.orderStatusList) {
            if (!Array.isArray(object.orderStatusList))
                throw TypeError(".OrdOrderCondition.orderStatusList: array expected");
            message.orderStatusList = [];
            for (var i = 0; i < object.orderStatusList.length; ++i)
                message.orderStatusList[i] = object.orderStatusList[i] | 0;
        }
        if (object.userName != null)
            message.userName = String(object.userName);
        if (object.itemNames != null)
            message.itemNames = String(object.itemNames);
        if (object.receiverName != null)
            message.receiverName = String(object.receiverName);
        if (object.serOrderTypeList) {
            if (!Array.isArray(object.serOrderTypeList))
                throw TypeError(".OrdOrderCondition.serOrderTypeList: array expected");
            message.serOrderTypeList = [];
            for (var i = 0; i < object.serOrderTypeList.length; ++i)
                message.serOrderTypeList[i] = String(object.serOrderTypeList[i]);
        }
        if (object.receiverPhone != null)
            message.receiverPhone = String(object.receiverPhone);
        if (object.serTotalFeeLeft != null)
            message.serTotalFeeLeft = String(object.serTotalFeeLeft);
        if (object.serTotalFeeRight != null)
            message.serTotalFeeRight = String(object.serTotalFeeRight);
        return message;
    };

    /**
     * Creates a plain object from an OrdOrderCondition message. Also converts values to other types if specified.
     * @function toObject
     * @memberof OrdOrderCondition
     * @static
     * @param {OrdOrderCondition} message OrdOrderCondition
     * @param {$protobuf.IConversionOptions} [options] Conversion options
     * @returns {Object.<string,*>} Plain object
     */
    OrdOrderCondition.toObject = function toObject(message, options) {
        if (!options)
            options = {};
        var object = {};
        if (options.arrays || options.defaults) {
            object.uuidList = [];
            object.serAuditList = [];
            object.orderStatusList = [];
            object.serOrderTypeList = [];
        }
        if (options.defaults) {
            object.uuid = "";
            object.upper = "";
            object.validFlag = "";
            object.creator = "";
            object.createTime = "";
            object.creatorIp = "";
            object.lastModifier = "";
            object.lastModifyTime = "";
            object.lastModifierIp = "";
            object.ownerOrganize = "";
            object.ownerRole = "";
            object.serNum = "";
            object.serMemo = "";
            object.serAudit = "";
            object.serUsing = "";
            object.serLabels = "";
            object.createTimeOUTSET = "";
            object.createTimeFINISH = "";
            object.lastModifyTimeOUTSET = "";
            object.lastModifyTimeFINISH = "";
            object.serOrderNo = "";
            object.userName = "";
            object.itemNames = "";
            object.receiverName = "";
            object.receiverPhone = "";
            object.serTotalFeeLeft = "";
            object.serTotalFeeRight = "";
        }
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            object.uuid = message.uuid;
        if (message.upper != null && message.hasOwnProperty("upper"))
            object.upper = message.upper;
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            object.validFlag = message.validFlag;
        if (message.creator != null && message.hasOwnProperty("creator"))
            object.creator = message.creator;
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            object.createTime = message.createTime;
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            object.creatorIp = message.creatorIp;
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            object.lastModifier = message.lastModifier;
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            object.lastModifyTime = message.lastModifyTime;
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            object.lastModifierIp = message.lastModifierIp;
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            object.ownerOrganize = message.ownerOrganize;
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            object.ownerRole = message.ownerRole;
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            object.serNum = message.serNum;
        if (message.serMemo != null && message.hasOwnProperty("serMemo"))
            object.serMemo = message.serMemo;
        if (message.serAudit != null && message.hasOwnProperty("serAudit"))
            object.serAudit = message.serAudit;
        if (message.serUsing != null && message.hasOwnProperty("serUsing"))
            object.serUsing = message.serUsing;
        if (message.serLabels != null && message.hasOwnProperty("serLabels"))
            object.serLabels = message.serLabels;
        if (message.uuidList && message.uuidList.length) {
            object.uuidList = [];
            for (var j = 0; j < message.uuidList.length; ++j)
                object.uuidList[j] = message.uuidList[j];
        }
        if (message.createTimeOUTSET != null && message.hasOwnProperty("createTimeOUTSET"))
            object.createTimeOUTSET = message.createTimeOUTSET;
        if (message.createTimeFINISH != null && message.hasOwnProperty("createTimeFINISH"))
            object.createTimeFINISH = message.createTimeFINISH;
        if (message.lastModifyTimeOUTSET != null && message.hasOwnProperty("lastModifyTimeOUTSET"))
            object.lastModifyTimeOUTSET = message.lastModifyTimeOUTSET;
        if (message.lastModifyTimeFINISH != null && message.hasOwnProperty("lastModifyTimeFINISH"))
            object.lastModifyTimeFINISH = message.lastModifyTimeFINISH;
        if (message.serAuditList && message.serAuditList.length) {
            object.serAuditList = [];
            for (var j = 0; j < message.serAuditList.length; ++j)
                object.serAuditList[j] = message.serAuditList[j];
        }
        if (message.serOrderNo != null && message.hasOwnProperty("serOrderNo"))
            object.serOrderNo = message.serOrderNo;
        if (message.orderStatusList && message.orderStatusList.length) {
            object.orderStatusList = [];
            for (var j = 0; j < message.orderStatusList.length; ++j)
                object.orderStatusList[j] = message.orderStatusList[j];
        }
        if (message.userName != null && message.hasOwnProperty("userName"))
            object.userName = message.userName;
        if (message.itemNames != null && message.hasOwnProperty("itemNames"))
            object.itemNames = message.itemNames;
        if (message.receiverName != null && message.hasOwnProperty("receiverName"))
            object.receiverName = message.receiverName;
        if (message.serOrderTypeList && message.serOrderTypeList.length) {
            object.serOrderTypeList = [];
            for (var j = 0; j < message.serOrderTypeList.length; ++j)
                object.serOrderTypeList[j] = message.serOrderTypeList[j];
        }
        if (message.receiverPhone != null && message.hasOwnProperty("receiverPhone"))
            object.receiverPhone = message.receiverPhone;
        if (message.serTotalFeeLeft != null && message.hasOwnProperty("serTotalFeeLeft"))
            object.serTotalFeeLeft = message.serTotalFeeLeft;
        if (message.serTotalFeeRight != null && message.hasOwnProperty("serTotalFeeRight"))
            object.serTotalFeeRight = message.serTotalFeeRight;
        return object;
    };

    /**
     * Converts this OrdOrderCondition to JSON.
     * @function toJSON
     * @memberof OrdOrderCondition
     * @instance
     * @returns {Object.<string,*>} JSON object
     */
    OrdOrderCondition.prototype.toJSON = function toJSON() {
        return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
    };

    return OrdOrderCondition;
})();

module.exports = $root;
